﻿

/*
NAILSUPERSTORE ® COMPANY
 
[HISTORY]
Created By  	: NGUYEN VAN TY
Created Date	: 12/10/2010
Modified By     :
Modified Date   :
Note            :

*/

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using CommonTagTime.DataAccess;
using CommonTagTime.ModelObject;
namespace CommonTagTime.Business
{
    public class busProductRelated
    {
        //------------------------------------------------
        //FIELD TABLE
        //------------------------------------------------
        public const string TABLE = "ProductRelated";
        public const string PRODUCTID = "ProductID";
        public const string PPRODUCTRELATEDID = "ProductRelatedID";
        public const string SKUPPRODUCTRELATEDID = "SKUProductRelatedID";
        public const string SORTORDER = "SortOrder";      
        public const string ORDERBY = "OrderBy";
        public const string ORDERDIRECTION = "OrderDirection";
        public const string CURRENTPAGE = "CurrentPage";
        public const string PAGESIZE = "PageSize";     
        public const string TOTALRECORDS = "TotalRecords";
        public const string CONDITION = "Condition";


        private daoProductRelated _daoProduct;
        //------------------------------------------------
        //PUBLIC
        //------------------------------------------------
        public busProductRelated()
        {
            _daoProduct = new daoProductRelated();
        }
        public int Insert(ProductRelated objProduct)
        {
            return _daoProduct.Insert(objProduct);
        }
        public bool OrderDown(ProductRelated objProduct)
        {
            return _daoProduct.OrderDown(objProduct);
        }
        public bool OrderUp(ProductRelated objProduct)
        {
            return _daoProduct.OrderUp(objProduct);
        }
        public bool Delete(ProductRelated objProduct)
        {
            return _daoProduct.Delete(objProduct);
        }
      
    }

}